// 因为get请求需要拼接query
export function paramsToQuery(params: any) {
  let query = '?';

  for (const key in params) {
    // eslint-disable-next-line no-continue
    if (params[key] === undefined || params[key] === null || params[key] === '') continue;
    query = `${query}&${key}=${params[key]}`;
  }
  return query;
}
